import React from 'react';
import { Input, Icon } from 'antd';
import styles from './index.less';

const CustomSearch = React.forwardRef(({ ...rest }, ref) => (
    <Input.Search
        ref={ref}
        className={styles.customSearch}
        placeholder="搜索姓名、岗位、最近工作"
        allowClear
        prefix={<Icon type="search" style={{ color: 'rgba(0, 0, 0, 0.45)' }} />}
        style={{ width: 240 }}
        {...rest}
    />
));

export default CustomSearch;
